#ifndef _FILE_CTRL_H_
#define _FILE_CTRL_H_
#include <stdint.h>
#include "protocol_info.h"

class CFileInfo_manager
{
public:
	CFileInfo_manager();
	~CFileInfo_manager();

	int Init(int maxFileNum);

	int GetFileLst(FILE_LST_REQ * fileReq);
	
	int DelFile(FILE_DEL_INFO_REQ * pDelInfo);

	int GetSDCardStatus();

	char * GetLstBuf()
	{
		return m_fileLstbuf;
	}

	int GetFileNum()
	{
		return m_fileNum;
	}

	int GetFileLstSz()
	{
		return m_fileNum * sizeof(FILE_RET_INFO);
	}

protected:
	char * m_fileLstbuf;
	int    m_fileNum;
	int  * m_pRetNum;
	int    m_maxNum;
	int    m_lstBufSz;
};

#endif